<h2>Список всех номеров газеты</h2>
<table class="table">
{% for issue in issues %}
    <tr>
        <td>
	    <a href="/admin/newspaper/Issues/edit?id={{ issue.id }}"><i class="icon-edit"></i></a>
	    <a href="/admin/newspaper/Issues/delete?id={{ issue.id }}"><i class="icon-trash"></i></a>
	    <a href="/admin/newspaper/Issues/edit?id={{ issue.id }}">{{ issue.number }}</a>
	</td>
	<td>{{ issue.firstdate }}</td>
	<td>{{ issue.lastdate }}</td>
	<td>{% if issue.pdf %}{{ issue.pdf }}{% else %}-{% endif %}</td>
    </tr>
{% else %}
<tr><td>список пуст</td></p>
{% endfor %}
</table>

<h4>Добавить номер</h4>
{{ issue.form('add', '/admin/newspaper/Issues/save')|raw }}